<?php
namespace app\model;


class Order extends Common
{
    const ORDER_STATUS_PENDING = 1;
    const ORDER_STATUS_APPROVED = 2;
    const ORDER_STATUS_REJECTED = -1;
    public function member()
    {
        return $this->hasOne(Member::class,"id",'member_id')->field("id,email");
    }

    public function market()
    {
        return $this->hasOne(Market::class,"id",'market_id')->field("id,code");
    }
    public function coin()
    {
        return $this->hasOne(PayCoins::class,"id",'coin_id')->field("id,coin_name,icon");
    }
}